import 'package:example/app/controller/favourite_controller.dart';
import 'package:example/app/data/model/article_bean.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_base_framework/flutter_base_framework.dart';

addFavourites(BuildContext context,
    {required ArticleBean article,
    Object tag: 'addFavourite',
    bool playAnim: true}) async {
  FavouriteController controller = Get.find(tag: article.id.toString());
  await controller.collect(article);
}
